import request from '@/utils/request'

// 查询影音分类列表
export function listCategory(query) {
  return request({
    url: '/app/thirdColumnCategory/list',
    method: 'get',
    params: query
  })
}
// 查询影音分类列表
export function queryListCategory(query) {
  return request({
    url: '/app/thirdColumnCategory/queryList',
    method: 'get',
    params: query
  })
}

// 查询影音分类详细
export function getCategory(thirdColumnCategoryId) {
  return request({
    url: '/app/thirdColumnCategory/' + thirdColumnCategoryId,
    method: 'get'
  })
}

// 新增影音分类
export function addCategory(data) {
  return request({
    url: '/app/thirdColumnCategory',
    method: 'post',
    data: data
  })
}

// 修改影音分类
export function updateCategory(data) {
  return request({
    url: '/app/thirdColumnCategory',
    method: 'put',
    data: data
  })
}

// 删除影音分类
export function delCategory(thirdColumnCategoryId) {
  return request({
    url: '/app/thirdColumnCategory/' + thirdColumnCategoryId,
    method: 'delete'
  })
}

// 导出影音分类
export function exportCategory(query) {
  return request({
    url: '/app/thirdColumnCategory/export',
    method: 'get',
    params: query
  })
}
